/*
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License version 2 as published by the Free Software Foundation.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef UI_MENUS_H
#define UI_MENUS_H

//qt
#include <QPointer>
#include <QMenu>
/// fwd
class QMenu ; 
class QWidget ; 
class QMenuBar ; 
class QtWindowListMenu ; 

//#include "../math/ifunction.h"
namespace UI {
    class Menus{
        public:
            Menus( QWidget * pParent ) ; 
            void attachTo( QMenuBar * _pMenuBar ) ; 
            virtual ~Menus() ; 
            
            void disableFunctionMenu( ) ; 
            void enableFunctionMenu( ) ; 
        private:
            /// methods 
            void addActions() ; 
            QPointer<QMenu> m_pFileMenu ; 
            QPointer<QMenu> m_pFunctionMenu ; 
            QPointer<QMenu>  m_pAboutMenu ; 
            QPointer<QtWindowListMenu> m_pWindowListMenu ; 
    }; 
    class ContextFunctionMenu : public QMenu {
        public:
            ContextFunctionMenu( const QString & _menuName ,/* Math::IFunction<double> *pFunction ,*/ QWidget *pParent = NULL ) ; 
        private:
//             Math::IFunction<double> * m_pFunction ; 
    };
}
#endif // UI_MENUS_H
